package com.deli.springboot.mapper;

import com.deli.springboot.entity.Comment;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository(value="CommentMapper")
public interface CommentMapper {

    /**
     * 根据条件查询书籍
     * @param comment
     * @return
     */
     List<Comment> selectByExample(Comment comment);

    /**
     * 添加书籍
     * @param comment
     * @return
     */
     int add(Comment comment);

}
